package com.fhc.laser_monitor_sw_android_rtsp_app.activity;

import android.os.Bundle;

import com.fhc.laser_monitor_sw_android_rtsp_app.R;

import cn.jzvd.Jzvd;

public class VideoPlayActivity extends BaseActivity {

    private Jzvd myJzvdStd;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_video_play);

        myJzvdStd = findViewById(R.id.jz_video);

        String str = getIntent().getStringExtra("URL");
        String name = getIntent().getStringExtra("NAME");

        myJzvdStd.setData();

        //本地文件转URL
        try {

            myJzvdStd.setUp(str, name);

        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    @Override
    protected void onDestroy() {
        myJzvdStd.reset();
        super.onDestroy();
    }
}